package cn.yunhe.services.impl;

import cn.yunhe.dao.ITypeDao;
import cn.yunhe.entity.Type;
import cn.yunhe.services.ITypeServices;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2018/6/9.
 */
@Service
public class TypeServicesImpl implements ITypeServices {
        @Resource
        private ITypeDao typeDao;
        /**
         * 添加考题类型
         * @param type
         * @return
         */
        @Override
        public int addType(Type type) {
            return typeDao.addType(type);
        }

        /**
         * 删除考题类型
         * @param type
         * @return
         */
        @Override
        public int delType(Type type) {
            return typeDao.delType(type);
        }
        /**
         * 查看题类型
         *
         * @return
         */
        @Override
        public List<Type> findType() {
            return typeDao.findType();
        }
        @Override
        public List<Object> getTypeList() {
            return typeDao.getTypeList();
        }
    }

